package com.johann.random;

import java.util.*;

@SuppressWarnings("ALL")
public class GenerateRandomNum {

    public static void main(String[] args) {
        ArrayList arr1 =new ArrayList();
        Random rd = new Random();
        for (int i = 0; i < 4; i++) {
            int excellent = rd.nextInt(10) + 91;
            arr1.add(excellent);
        }
        Collections.sort(arr1);
        System.out.println(arr1.toString());
        arr1.clear();

        System.out.println("====================================");
        Random rd2 = new Random();
        for (int i = 0; i < 18; i++) {
            int normal = rd2.nextInt(20) + 71;
            arr1.add(normal);
        }
        Collections.sort(arr1);
        System.out.println(arr1.toString());
    }
}
